import request from '@/utils/request'

/* 发送邮箱验证码 */
export function sendAuthCode(email) {
    return request({
        url: '/member/sendEmailAuthCode/' + email,
        method: 'get',
    })
}

/* 获取机场城市 */
export function getCities(params) {
    return request({
        url: '/flight/airport-info/cities',
        method: "get",
        params
    })
}

/* 根据字典类型获取字典数据 */
export function getDictData(dataType) {
    return request({
        url: '/system/anon/dict/data/list/'+dataType,
        method: 'get'
    })
}

/* 按机场代码获取机场信息 */
export function getAirportByCityCode(cityCode) {
    return request({
        url: '/flight/airport-label/city-code/' + cityCode,
        method: "get"
    })
}
